//
//  UIColorExtension.swift
//  Trill
//
//  Created by 顾钱想 on 2019/11/9.
//  Copyright © 2019 顾钱想. All rights reserved.
//

import UIKit

import Foundation

public extension UIColor {

    static func RGBA(_ r: CGFloat, _ g: CGFloat, _ b: CGFloat, _ a: CGFloat = 1) -> UIColor {
        return UIColor(red: r / 255.0, green: g / 255.0, blue: b / 255.0, alpha: a)
    }

   

}
